<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>月日历</title>
</head>
<style>
    #top {
        position: relative;
        height: 60px;
        text-align: center;
        line-height: 60px;
    }
    table {
        background-color: #f7f7f7;
        margin: auto;
    }

    #week td {
        font-size: 20px;
        font-weight: bold;
    }

    td {
        height: 60px;
        width: 60px;
        text-align: center;
        font-size: 20px;
    }

    #left, #right {
        position: absolute;
        width: 60px;
        height: 60px;
        color: cornflowerblue;
    }

    #left {
        left: 0;
    }

    #right {
        right: 0;
    }

    #left:hover, #right:hover {
        background-color: rgba(30, 30, 30, 0.2);
    }
    h3{
        text-align: center;
    }

</style>
<body>
<div>
    <h3>示例只做展示，没写样式，需要什么功能自己改改源码就能实现</h3>
    <table>
        <thead>
        <tr>
            <td colspan="7">
                <div id="top">
                    <span id="left" class="prev_icon" onclick="preMonth()">&lt;</span>
                    <span style="font-size: 30px;" id="topInfo"></span>
                    <span id="right" class="next_icon" onclick="nextMonth()">&gt;</span>
                </div>
            </td>
        </tr>
        <tr id="week">
            <td>日</td>
            <td>一</td>
            <td>二</td>
            <td>三</td>
            <td>四</td>
            <td>五</td>
            <td>六</td>
        </tr>
        </thead>
        <tbody id="tbody">
        </tbody>
    </table>
</div>

<script src="js/monthlyCalendar.js"></script>
<script type="text/javascript">
    init();
</script>
</body>
</html>
